import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    pageTitleColor:'#333'
  },
  getters: {
    getColor(state){
      return state.pageTitleColor
    }
  },
  mutations: {
    changecolor(state,payload){
      if(payload){
        state.pageTitleColor = '#333'
      }else{
        state.pageTitleColor = '#fff'
      }

    }
  },
  actions: {
  },
  modules: {
  }
})
